import request from '@/utils/request'


export function getPointAlarmData(data) {
    return request({
        url: '/swla2/gisPoint/getPointAlarmData',
        method: 'post',
        data: data
    })
}

export function getPointTypeCount(data) {
    return request({
        url: '/swla2/gisPoint/getPointTypeCount',
        method: 'post',
        data: data
    })
}

export function getPointFeatureData(data) {
    return request({
        url: '/swla2/gisPoint/getPointFeatureData',
        method: 'post',
        data: data
    })
}

export function generatePoint(query) {
    return request({
        url: '/swla2/gisPoint/generatePoint',
        method: 'get',
        params: query
    })
}

export function testPoint(query) {
    return request({
        url: '/swla2/gisPoint/testDygq',
        method: 'get',
        params: query
    })
}

// 查询GIS管网-管点列表
export function listGisPoint(query) {
    return request({
        url: '/swla2/gisPoint/list',
        method: 'get',
        params: query
    })
}

// 查询GIS管网-管点详细
export function getGisPoint(id) {
    return request({
        url: '/swla2/gisPoint/' + id,
        method: 'get'
    })
}

// 新增GIS管网-管点
export function addGisPoint(data) {
    return request({
        url: '/swla2/gisPoint',
        method: 'post',
        data: data
    })
}

// 修改GIS管网-管点
export function updateGisPoint(data) {
    return request({
        url: '/swla2/gisPoint',
        method: 'put',
        data: data
    })
}

// 删除GIS管网-管点
export function delGisPoint(id) {
    return request({
        url: '/swla2/gisPoint/' + id,
        method: 'delete'
    })
}
